<?php

use Illuminate\Database\Seeder;
use App\Models\Licence;
use Carbon\Carbon;

class LicenceTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $time = Carbon::now();
        $data = [
            ['name' => 'C1', 'sort' => 10, 'created_at' => $time],
            ['name' => 'C2', 'sort' => 0, 'created_at' => $time],
            ['name' => 'C3', 'sort' => 0, 'created_at' => $time],
            ['name' => 'C4', 'sort' => 0, 'created_at' => $time],
            ['name' => 'A1', 'sort' => 0, 'created_at' => $time],
            ['name' => 'A2', 'sort' => 0, 'created_at' => $time],
            ['name' => 'A3', 'sort' => 0, 'created_at' => $time],
            ['name' => 'B1', 'sort' => 0, 'created_at' => $time],
            ['name' => 'B2', 'sort' => 0, 'created_at' => $time],
            ['name' => 'D', 'sort' => 0, 'created_at' => $time],
            ['name' => 'E', 'sort' => 0, 'created_at' => $time],
            ['name' => 'F', 'sort' => 0, 'created_at' => $time],
            ['name' => 'M', 'sort' => 0, 'created_at' => $time],
            ['name' => 'N', 'sort' => 0, 'created_at' => $time],
            ['name' => 'P', 'sort' => 0, 'created_at' => $time]
        ];
        Licence::insert($data);
    }
}
